﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NonLogged.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="PL___Web_Application.Register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

 <style type="text/css">
 .save_bt
        {
            width: 100px;
            height: 30px;
            background-image: url('grafics/register_bt.png');
            background-color: transparent;
            border: 0;
            background-repeat: no-repeat;
            z-index: 5;
        }
        .save_bt:hover
        {
            background-image: url('grafics/register_bt_hover.png');
        }
        </style>
         <script type="text/javascript" language="javascript">

             //To preload images
             Img1 = new Image();
             Img1.src = "grafics/register_bt_hover.png";
          

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentplaceholder" runat="server">
 <div id="contentlogin" runat="server">
        <br />
        <h2 id="H1" runat="server">
            Select Type of Register:</h2>
        <div id="logintype" runat="server">
            <asp:RadioButton ID="private_rd" runat="server" GroupName="customertype" 
                Text="Private Customer" AutoPostBack="True"  OnCheckedChanged="changeform" 
                Font-Size="Medium"/>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:RadioButton ID="business_rd" runat="server" GroupName="customertype" 
                Text="Business Customer" AutoPostBack="True"  OnCheckedChanged="changeform" 
                Font-Size="Medium" />
        </div>
        <div id="register_private" runat="server" visible="false">
            <br />
         <h2>Register Private Customer:</h2>
                <br />
           
         <table cellpadding="2" cellspacing="7">
                <tr>
                    <td>
                        <b>Username:</b>
                    </td>
                    <td>
                        <asp:TextBox ID="username_tb" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Password:</b>
                    </td>
                    <td>
                        <asp:TextBox ID="password_tb" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Name</b></td>
                    <td>
                          <asp:TextBox ID="name_tb" runat="server"></asp:TextBox>
                 
                       
                    </td>
                    <td>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>
                       <b>CPR</b> </td>
                    <td>
                        <asp:TextBox ID="cpr_tb" runat="server"></asp:TextBox>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                       <b>Address</b> </td>
                    <td>
                       <asp:TextBox ID="address_tb" runat="server"></asp:TextBox>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <b>Phone</b></td>
                    <td>
                        <asp:TextBox ID="phone_tb" runat="server"></asp:TextBox>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                       <b>Age</b> </td>
                    <td>
                         <asp:TextBox ID="age_tb" runat="server"></asp:TextBox>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                       <b>Sex</b></td>
                    <td>
                        <asp:DropDownList ID="sex_cb" runat="server">
                            <asp:ListItem>Female</asp:ListItem>
                            <asp:ListItem>Male</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <br />
                        <asp:Button runat="server" ID="save_button" Text="" class="save_bt" onclick="save_private"/>
                       
                        </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
            
        </div>

          <div id="register_business" runat="server" visible="false">
            <br />
         <h2>Register Business Customer:</h2>
                <br />
           
         <table cellpadding="2" cellspacing="7">
                <tr>
                    <td>
                        <b>Username:</b>
                    </td>
                    <td>
                        <asp:TextBox ID="username_b_tb" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Password:</b>
                    </td>
                    <td>
                        <asp:TextBox ID="password_b_tb" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Company Name</b></td>
                    <td>
                          <asp:TextBox ID="company_name_tb" runat="server"></asp:TextBox>
                 
                       
                    </td>
                    <td>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>
                       <b>Company ID</b> </td>
                    <td>
                        <asp:TextBox ID="company_id_tb" runat="server"></asp:TextBox>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                       <b>Address</b> </td>
                    <td>
                       <asp:TextBox ID="address_b_tb" runat="server"></asp:TextBox>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <b>Phone</b></td>
                    <td>
                        <asp:TextBox ID="phone_b_tb" runat="server"></asp:TextBox>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                       <b>Fax</b> </td>
                    <td>
                         <asp:TextBox ID="fax_tb" runat="server"></asp:TextBox>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                       <b>Contact Person</b></td>
                    <td>
                        <asp:TextBox ID="contact_person_tb" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <br />
                        <asp:Button runat="server" ID="register_business_bt" Text="" class="save_bt" OnClick="save_Business" />
                       
                        </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
             
        </div>
      <asp:Label ID="error_lb" runat="server" ForeColor="Red"></asp:Label>
    </div>
</asp:Content>
